package com.sunny.hp.common.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import com.sunny.hp.common.util.LogUtil;

public class ControllerRequestIntercepter implements HandlerInterceptor {
	private Logger logger = LogUtil.getLogger(getClass());
	/**
	 * 로그인 체크
	 * @param request
	 * @param response 
	 * @return boolean
	 * @throws Exception
	 */
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response,  Object obj) throws Exception {
		
		return true;
	}

	@Override
	public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3) throws Exception {

	}

	@Override
	public void postHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, ModelAndView arg3) throws Exception {
	}
}